<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>商品详情</title>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/midi/css/swiper-3.4.2.min.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/midi/css/initialize.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/midi/css/public.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/midi/css/validform.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/midi/css/jquery-ui.min.css"/>
    <script src="__PUBLIC__/midi/js/jquery-2.2.3 (1).js"></script>
    <script src="__PUBLIC__/midi/js/public.js"></script>
    <script src="__PUBLIC__/midi/js/swiper-3.4.2.jquery.min.js"></script>
    <script src="__PUBLIC__/midi/js/validform.js"></script>
    <script src="__PUBLIC__/midi/js/jquery-ui.min.js"></script>
</head>
<body>
    <!--头部导航栏开始-->
    <include file="Public/header" />
    <!--头部导航栏结束-->
    <div>
        <span>{$goods_name}</span>
        <span>{$order_totalprice}</span>
        <img alt="模式二扫码支付" src="{:U('Api/WxShaoMa/setWxShaoMaImg',array('codeUrl'=>$codeUrl))}" style="width:150px;height:150px;"/>
    </div>
</body>
<script>
    var id = "{$id}";
    setInterval(function () {
        $.ajax({
            url : "{:U('Home/Order/isPay')}",
            data: {id:id},
            dataType:'json',
            success: function(data){
                if(data.status == 1){
                    location.href=data.data;
                }
            }
        });
    },8000);
</script>
</html>